﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Globalization;
using System.Web.Mvc;
using System.Web.Security;

namespace Webs.Models
{
    public class BillModel
    {
        public BillModel ()
        {
        }
        public int BillNo { get; set; }
        
        [DataType(DataType.MultilineText)] 
        
        public string Shipper { get; set; }

        [DataType(DataType.MultilineText)] 
        public string Consignee { get; set; } 

        [Required (ErrorMessage="Is Required")]
        public string BookingNo { get; set; }
        [Required(ErrorMessage = "Is Required")]
        public string BillOfLoadingNo { get; set; }

        [DataType(DataType.MultilineText)] 
        public string DeliveryAgent { get; set; }

        [DataType(DataType.MultilineText)] 
        public string NotifyParty { get; set; } 

        public string PreCarriageBy { get; set; } 
        public string PlaceOfReceipt { get; set; } 
        public string OceanVessel { get; set; } 
        public string PortOfLoading { get; set; } 
        public string PortOfDischarge { get; set; } 
        public string PlaceOfDelivery { get; set; } 
        public string FinalDestination { get; set; } 
        public string TypeOfMovement { get; set; } 
        public string FreightAndCharge { get; set; } 
        public string ServiceContractNo { get; set; } 
        public string NumberOfOriginal { get; set; } 
        public string CommodityCode { get; set; } 
        public string ExchangeRate { get; set; } 
        public string DateLadenOnBoard { get; set; } 
        public string PlaceDateOfIssue { get; set; }

        public double Receipt { get; set; }
        public double Paid { get; set; }
        public double ReceiptRemain { get; set; }

        public double Payment { get; set; }
        public double Received { get; set; }
        public double PaymentRemain { get; set; }

    }

    public class BillDetailModel
    {
        public int BillNo { get; set; } 
        public int BillDetailNo { get; set; }

        [DataType(DataType.MultilineText)] 
        public string Container { get; set; }

        [DataType(DataType.MultilineText)] 
        public string Description { get; set; }

        [DataType(DataType.MultilineText)] 
        public string GrossWeight { get; set; } 
        
    }

    public class SearchBillModel
    {
        public string FrDate { get; set; }
        public string ToDate { get; set; }
        public string BookingNo { get; set; }
        public string BillOfLoadingNo { get; set; }
    }
}